Ext.define('App.reportconfiguration.model.ReportConfigurationKpiModel', {
    extend: 'Extend.data.BaseModel',
    fields: [
        {name: 'hidden', type: 'boolean'},
        {name: 'automaticCalculation', type: 'boolean'},
        {
            name: 'kpiname',
            convert: function (v, r) {
                if (!Ext.isEmpty(r.get('kpiConfiguration'))) {
                    return r.get('kpiConfiguration').field;
                } else {
                    return '';
                }
            }
        }]
})